import java.io.IOException;

/**
*
* Ori Weisler  ID 060512878
* Rony Lahav   ID 043489889 
* Date: Jun 24, 2009
*/

public class Compiler {

    /**
     * @param args
     */
    
    public static int[] memory = new int[1024];     //4096 bytes of memory (int=4 bytes) => 1024 integers possible
    public static int[] registers = new int[32];    //32 registers
    public static int nextReg;
    public static Interpreter interpreter = new Interpreter();
    public static Lexer lexer = new Lexer();
    public static SymTable symTable = SymTable.getInstance();
    
    public static void main(String[] args) throws IOException {
        registers[0]=0;
    	nextReg=1;
    	lexer.readInputFileAndInitSymTable();
        lexer.statSequance();
        Interpreter.executeJVMProgram();
    }

}
